using System;
using System.IO;
using System.Collections.Generic;

namespace ODSDataExtraction.DefaultExtractors
{
	internal class FilePathExtractor : DataExtractorBase
	{
		private static readonly string filePathKey = "FilePath";	
		public FilePathExtractor ()
		{
		}
		
		#region implemented abstract members of ODSDataExtraction.DataExtractorBase
		public override void ExtractData (FileInfo file, IDictionary<string, string> data)
		{
			if(logger.IsDebugEnabled)
				logger.DebugFormat("Extracting file path from {0}.", file);
			if(!data.ContainsKey(filePathKey))
				data.Add(filePathKey, file.FullName);
		}		
		#endregion
		
		
	}
}

